<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4" >

<!--导入head配置-->
<div th:replace="admin/public/module :: head('newIdeas后台管理系统')"></div>
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <div th:replace="admin/public/module :: leftNav"></div>
        <!--End 左侧导航-->

        <!--头部信息-->
        <div th:replace="admin/public/module :: headNav"></div>
        <!--End 头部信息-->

        <!--页面主要内容-->
        <main class="lyear-layout-content">

            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-6 col-lg-3">
                        <div class="card bg-danger">
                            <div class="card-body clearfix">
                                <div class="pull-right">
                                    <p class="h6 text-white m-t-0">用户总数</p>
                                    <p class="h3 text-white m-b-0 fa-1-5x" th:text="${userNum}"></p>
                                </div>
                                <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-account fa-1-5x"></i></span> </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6 col-lg-3">
                        <div class="card bg-primary">
                            <div class="card-body clearfix">
                                <div class="pull-right">
                                    <p class="h6 text-white m-t-0">原创</p>
                                    <p class="h3 text-white m-b-0 fa-1-5x" th:text="${ycNum}">102,125.00</p>
                                </div>
                                <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="iconfont icon-icon1" style="font-size: 22px"></i></span> </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6 col-lg-3">
                        <div class="card bg-success">
                            <div class="card-body clearfix">
                                <div class="pull-right">
                                    <p class="h6 text-white m-t-0">转载</p>
                                    <p class="h3 text-white m-b-0 fa-1-5x" th:text="${zzNum}">34,005,000</p>
                                </div>
                                <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="iconfont icon-zhuanzai" style="font-size: 20px"></i></span> </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6 col-lg-3">
                        <div class="card bg-purple">
                            <div class="card-body clearfix">
                                <div class="pull-right">
                                    <p class="h6 text-white m-t-0">日志</p>
                                    <p class="h3 text-white m-b-0 fa-1-5x">153 条</p>
                                </div>
                                <div class="pull-left"> <span class="img-avatar img-avatar-48 bg-translucent"><i class="mdi mdi-comment-outline fa-1-5x"></i></span> </div>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="row">
                    <div class="col-md-6">
                        <blockquote class="layui-elem-quote layui-quote-nm">
                            已发布
                        </blockquote>
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th>文章标题</th>
                                <th>发布时间</th>
                                <th>作者</th>
                                <th>编辑</th>
                            </tr>
                            </thead>
                            <tbody>
                            <th:block th:each="list : ${releasePageInfo.list}">
                                <tr >
                                    <td>
                                        <div class="btn-group">
                                            <a  th:href="@{'/articleDetails/'+${list.id}}" target="_blank" th:text="${list.articleTitle}" >

                                            </a>
                                        </div>
                                    </td>
                                    <td th:text="${#dates.format(list.articleNewstime,'yyyy/MM/dd HH:mm:ss')}"></td>
                                    <td th:text="${list.articleAuthor}"></td>
                                    <td th:text="${list.articleEdit}"></td>
                                </tr>
                            </th:block>
                            </tbody>
                        </table>
                    </div>
                    <div class="col-md-6">
                        <blockquote class="layui-elem-quote layui-quote-nm">
                            草稿
                        </blockquote>
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th>文章标题</th>
                                <th>发布时间</th>
                                <th>作者</th>
                                <th>编辑</th>
                            </tr>
                            </thead>
                            <tbody>
                            <th:block th:each="list : ${draftPageInfo.list}">
                                <tr >
                                    <td>
                                        <div class="btn-group">
                                            <a  th:href="@{'/articleDetails/'+${list.id}}" target="_blank" th:text="${list.articleTitle}" >

                                            </a>
                                        </div>
                                    </td>
<!--                                    <td th:text="${list.articleTitle}"></td>-->
                                    <td th:text="${#dates.format(list.articleNewstime,'yyyy/MM/dd HH:mm:ss')}"></td>
                                    <td th:text="${list.articleAuthor}"></td>
                                    <td th:text="${list.articleEdit}"></td>
                                </tr>
                            </th:block>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </main>
        <!--End 页面主要内容-->
    </div>
</div>


<!--导入js-->
<div th:include="admin/public/module :: javascript"></div>


</body>
</html>